What causes the Route.get() requires a callback function but got a [object Object] error in Express